package server.core;

/**
 * describe: 售罄状态
 *
 * @author helloworldyu
 * @data 2018/3/23
 */
public class SoldOutState extends AbstractState{
	public SoldOutState(GumballMachine machine) {
		super(machine);
	}

	@Override
	public void insertQuarter() {
		System.out.println("糖果已经售罄，请退回硬币");
	}

	@Override
	public void ejectQuarter() {
		System.out.println("没有放入硬币,不能退回硬币");
	}

	@Override
	public void turnCrank() {
		System.out.println("转动手柄,但糖果已经售罄");
	}

	@Override
	public void dispense() {
		System.out.println("糖果已经售罄，不能出售糖果");
	}
}